package com.yc.ycbook.base;

import android.os.Bundle;


import androidx.annotation.Nullable;

import com.yc.yclibrary.base.YcAppCompatActivity;
import com.yc.yclibx.YcManage;
import com.yc.yclibx.file.YcImgUtils;

import java.util.Stack;

import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;

/**
 *
 */
public abstract class BaseActivity extends YcAppCompatActivity implements IBase {
    public BaseActivity getActivity() {
        return this;
    }

    @Override
    protected void onDestroy() {
        mYcManage.removeAll();
        for (Disposable disposable : mDisposableList) {
            disposable.dispose();
        }
        super.onDestroy();
    }

    protected abstract void initView(@Nullable Bundle savedInstanceState);

}
